package com.flida.echart.basic.system.service.impl;

import com.flida.echart.basic.api.system.entity.Area;
import com.flida.echart.basic.system.dao.AreaDao;
import com.flida.echart.basic.system.service.IAreaService;
import com.flida.echart.basic.utils.JRedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yzc on 2016/12/15.
 */
@Service("areaService")
public class AreaServiceImpl implements IAreaService {

    @Autowired
    private AreaDao areaDao;
    @Autowired
    private JRedisUtil jredisUtil;


    public int deleteByPrimaryKey(String id) {
        return areaDao.deleteByPrimaryKey(id);
    }

    public int insert(Area record) {
        return areaDao.insert(record);
    }

    public int insertSelective(Area record) {
        return areaDao.insertSelective(record);
    }

    public Area selectByPrimaryKey(String id) {
        return areaDao.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(Area record) {
        return areaDao.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKeyWithBLOBs(Area record) {
        return areaDao.updateByPrimaryKeyWithBLOBs(record);
    }

    public int updateByPrimaryKey(Area record) {
        return areaDao.updateByPrimaryKey(record);
    }

    public List<Area> selectAll() {
        return areaDao.selectAll();
    }

    public void cacheToRedis() {

    }


//    public List wizard(String field) {
//        List result=null;
//        try{
//            if(!StringUtils.isBlank(field)){
//                result = ownProductService.wizard(field);
//            }
//        }catch (Exception ex){
//
//            logger.error("wizard信息异常  {}"+ex.getMessage());
//        }
//
//        return result;
//    }

}
